# coding:utf-8

# 4、字典如何删除键和合并两个字典

test_dict = {'1': 1, '2': 2}
print('test_dict=', test_dict)
del test_dict['1']
print('after del=', test_dict)

test_dict.update({'3': 3})
print('after combine==', test_dict)

# test_dict= {'1': 1, '2': 2}
# after del= {'2': 2}
# after combine== {'2': 2, '3': 3}
